]> dgit.raspbian.org Git - gnome-shell.git/commit
dateMenu: Make sure we always display a clock name
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 12 Apr 2019 00:10:04 +0000 (02:10 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 12 Apr 2019 01:17:35 +0000 (03:17 +0200)
commit22883f2fa200c0dcfe3b46bd9c08efcd48a69bd5
tree5f47b1a2fad1054a6588e378977938e7d171937e
parent5d9f80bc735921089d2a5c03d84264d5df883c57
dateMenu: Make sure we always display a clock name

We currently use the city name for all location except named timezones.
However locations only have a city name if they are of level CITY or
DETACHED, or if they are of level WEATHER_STATION with a parent of level
CITY.

So when libgweather commit d7682676ac9 moved weather station locations from
cities to countries, it broke their names in the world clocks section.

To fix this, stop making assumptions about when we can use the city name
and simply try it first for all locations and fall back to the plain name
if its not available.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/1150
js/ui/dateMenu.js